package com.medistat.controllers;

import java.io.Serializable;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.medistat.helpers.UrlConsts;

@Controller("testController")
public class TestController extends AbstractController implements Serializable{
 
	private static final long serialVersionUID = -3372065017825828354L;
	
	@PostConstruct
	public void initialize() {
		int a = 5;
		a++;
	} 

	@Override
	public String getPageName() {
		return null; 
	}
	
	@RequestMapping(value="/spring/default", method = RequestMethod.GET)
	public String test() {
		return UrlConsts.DEFAULT_PAGE;
	}
	
//	@RequestMapping(value="/pages/default", method = RequestMethod.GET)
//	public String test1() {
//		return UrlConsts.DEFAULT_PAGE;
//	}
	
	
}
